package com.cxmx.escort.mapper;

import com.cxmx.escort.entity.Top;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 充值表 Mapper 接口
 * </p>
 *
 * @author 陈云轩
 * @since 2019-10-21
 */
public interface TopMapper extends BaseMapper<Top> {

    @Select("select * from es_top where id=#{id}")
    Top getByIdBy(@Param("id") String outTradeNo);

    @Update(" UPDATE es_top SET delete_flag=0 where id=#{id}")
    void updateByIdBy(@Param("id")  String id);
}
